package com.dto;


import java.util.List;

public class PageDTO<T> {

    private int pageNumber;
    private int pageLimit;
    private int totalPage;
    private int totalCount;

    private List<T> date;

    public PageDTO() {
    }

    public PageDTO(int pageNumber, int pageLimit, int totalPage, int totalCount, List<T> date) {
        this.pageNumber = pageNumber;
        this.pageLimit = pageLimit;
        this.totalPage = totalPage;
        this.totalCount = totalCount;
        this.date = date;
    }

    @Override
    public String toString() {
        return "PageDTO{" +
                "pageNumber=" + pageNumber +
                ", pageLimit=" + pageLimit +
                ", totalPage=" + totalPage +
                ", totalCount=" + totalCount +
                ", date=" + date +
                '}';
    }

    public int getPageNumber() {
        return pageNumber;
    }

    public void setPageNumber(int pageNumber) {
        this.pageNumber = pageNumber;
    }

    public int getPageLimit() {
        return pageLimit;
    }

    public void setPageLimit(int pageLimit) {
        this.pageLimit = pageLimit;
    }

    public int getTotalPage() {
        return totalPage;
    }

    public void setTotalPage(int totalPage) {
        this.totalPage = totalPage;
    }

    public int getTotalCount() {
        return totalCount;
    }

    public void setTotalCount(int totalCount) {
        this.totalCount = totalCount;
    }

    public List<T> getDate() {
        return date;
    }

    public void setDate(List<T> date) {
        this.date = date;
    }
}
